<%@ page session="true" contentType="text/html;charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
  <!--
  /*
   * license
   */
  //-->
  <meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=UTF-8" />
  <title>Insert Title Here</title>

</head>
<body class="tundra">
<!-- content --->
<f:view>
	<h:panelGroup>
		<t:dojoInitializer require="dojo.widget.ValidationTextbox" debugConsole="true" />
		<t:dojoInitializer require="dojo.widget.DatePicker" />
		<t:dojoInitializer require="dojo.widget.DateTextbox" />
		
		<f:verbatim>
		<script type="text/javascript">
		
		  var vboxparams = {
		    promptMessage: 'Enter something...',
		    missingMessage: 'Content missing...'
		  
		  };
		
			var vbox = dojo.widget.createWidget("ValidationTextbox", vboxparams , dojo.byId("testform:vboxel"));
			var ed = dojo.widget.createWidget("DatePicker", {}, dojo.byId("testform:datepickerel"));
			//console.debug(vbox);
			//console.debug(dojo.byId("testform:test"));
			</script>
		
		</f:verbatim>
		
		<h:form id="testform">
		
			<h:inputText id="vboxel" styleClass="dojo-ValidationTextbox" /> <br />
			<h:inputText id="datepickerel" /> <br />
			<h:inputText id="dateboxel" /> <br />
		
		</h:form>
		
		
  </h:panelGroup>
</f:view>
<!-- /content --->
</body>
</html>